/**
 * 
 */
package com.nwpusp.transmitter;

import java.util.ArrayList;
import com.nwpusp.controller.actions.Action;
import com.nwpusp.model.session.ConnectionId;

/**
 * @author JustinCao
 *
 */
public interface TransmitterListener {
	public void 	OnReceive(Transmitter t, ConnectionId from, ArrayList<Action> al);
	public boolean 	OnAccept(Transmitter t, ConnectionId client);	// for server only
	public void 	OnDisconnect(Transmitter t, ConnectionId leave);
	public void		OnEstablished(Transmitter t, ConnectionId opposite, boolean success);
	public String 	OnGetBroadcastName(Transmitter t);
}
